<% var pageLevelJS = { %>
<script type="text/javascript">
var settings = {
	 	modelDomainFlag:"log"
		,modelFlag:"access"
		,modelName:"操作日志"
	 	,key:"${sessionId}"
	 	,canUpdate:false
	 	,canDelete:false
	 	,canRemove:false
	 	,canAdd:false
	 	,canDetail:${shiro.hasPermission('log_access:detail:*')}
	};
window.global.hasInstance = ${sysFlags.~size>1};
</script> 
<script type="text/javascript" src="${ctx}/static/js/log/access/index.js"></script>
<%};%> 
<% var form = { %>
<form id="searchForm" action="${ctx}/log/access/query?_style=bs&${session._para}" class="form-inline" role="form">
				   <%if(has(sysFlags) && sysFlags.~size>1){ %>
					   <div class="form-group  ">
					     <label for="categoryCode">所属系统:</label>
						 <select placeholder="类别" name="instanceId" class="form-control">
						    <option value="">--系统--</option>
							<% for(res in sysFlags!){ %>
							  <option value="${res.id}">${res.nameStr}</option>
						　　   <% } %>
						</select>
					  </div>
				   <%}else{%>
				       <input type="hidden"  name="instanceId" value="${sys_flag}">
				    <% } %>
				  <div class="form-group">
				     <label for="createUser">用户名:</label>
				     <input type="text" class="validate[maxSize[50]] form-control" name="createUser" placeholder="用户名">
				  </div>
				  <div class="form-group">
				     <label for="startDate">访问日期:</label>
				     <input  style="height:32px;" class="Wdate form-control" type="text" name="createDtSt" id="startDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endDate\')}'})"    placeholder="请输入开始日期"/>
				     <label for="endDate">至</label>
				     <input  style="height:32px;" class="Wdate form-control" type="text" name="createDtEd" id="endDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startDate\')}'})"    placeholder="请输入结束日期"/>
				  </div>
			</form>
<%};%> 

<% var toolbar = { %>

<%};%> 

<% var ths = { %>
    <th w_num="total_line" w_class="center hidden-480"  width="50px">序号</th>
    <th w_index="createUser" w_tip="true" >用户名</th>
    <th w_index="modelFlagName" w_class="" >模块</th>
    <th w_index="operTypeName" w_class="hidden-480" >操作类型</th>
    <th w_index="status" >状态</th>
    <%if(has(sysFlags) && sysFlags.~size>1){ %>
    <th w_index="instance.nameStr" w_class="hidden-480"  >所属系统</th>
    <%}%>
    <th w_index="validCreateDt" w_class="hidden-480" width="130px">操作时间</th>
    <th w_index="requestIp" width="100px">访问IP</th>
	<th w_render="operateFunc" w_index="id" class="width-480-ctr" width="50px">操作</th>
<%};%> 
<% var layoutParas =
{"title":"",table:"searchTable",tableClass:"","ths":ths,"toolbar":toolbar,"form":form,"pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicGridTemplate.html", layoutParas){ %>
	
<%} %>
